home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Persistent Floating Windo.5 < prev    next >
Encoding:
Internet Message Format  |  1996-07-03  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Persistent Floating Windows
  2. Sent:        7/3/96 10:28 AM
  3. Received:    7/3/96 10:41 AM
  4. From:        Troy Gaul, tgaul@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>If this is the ONLY way to keep a floating window open while using 
  9. >>another part, then where do I get a chance to create the floating window 
  10. >>for the part's main presentation and frame?
  11. >>
  12. >>My part is already embedded, and I want its main frame and presentation 
  13. >>to belong in a floating window.
  14. >>
  15. >>Below are two places I tried:
  16. >>
  17. >>1) "View in Window" - My part does not receive this menu event, only from 
  18. >>my own menus.  If I can get this event from my part, I might call "new 
  19. >>FW_CFloatingWindow()"
  20. >>
  21. >>2) CPart::MakeDocumentWindow() - only works if you open a part's 
  22. >>stationery or wish to open the part in a new document window.
  23. >>
  24. >>Any ideas would be appreciated.  Thanks!
  25. >
  26. >Try to do that in FrameAdded. ODF creates non-persistent frame for 
  27. >Floating windows so you may have to recreate the floating window and 
  28. >frame everytime the document is opened. 
  29.  
  30. I've been thinking about this, and it seems that you have a floating 
  31. window which you don't want to act like a normal floating tool window.  
  32. It would seem that you could create an ODF FW_CWindow object, and pass 
  33. in, for the style parameter, that it's a floating window 
  34. (FW_kFloatingWindow).
  35.  
  36. This should create a window that can be persistent (if you pass in TRUE 
  37. for the persistent parameter) and is floating.  Also, since it's not 
  38. based on FW_CFloatingWindow, it won't try to be shared by multiple 
  39. instances of your part and it won't be automatically hidden when your 
  40. part is deactivated.
  41.  
  42. You could then provide some extension mechanism for sharing the palette 
  43. between parts in the document if you wanted to.
  44.  
  45. I don't know if this meets your needs, but it's another possiblility.
  46.  
  47. _troy
  48.  
  49. ......................................................................
  50.  Troy Gaul                                            tgaul@apple.com
  51.  Apple Computer, Inc.                               OpenDoc Partsmith
  52.  
  53.  
  54.